package net.melon.sysres;

import java.io.File;

import net.esj.basic.core.engine.config.MelonConfig;
import net.esj.basic.utils.StringUtils;

public class SysresUtils {

	/**
	 * 上传基本路径
	 * @return
	 */
	public static String getBasicUploadPath(){
		String d = MelonConfig.getProperty(Constants.MELON_SYSRES_BASIC_UPLOAD_DIR);
		if(StringUtils.hasText(d)){
			d = System.getProperties().getProperty("user.dir");
			d =d+File.separator+Constants.MELON_DEFAULT_DIR;
		}
		if(!d.endsWith(File.separator)){
			d+=File.separator;
		}
		return d;
	}
	
}
